Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync to master #2

Merged
merged 32 commits into from
Jan 25, 2018
Merged

Sync to master #2

merged 32 commits into from
Jan 25, 2018

Conversation

nikos-github
Copy link
Owner

No description provided.

nikos-github and others added 30 commits November 22, 2017 16:55
[config] Call hostname service to config hostname instead
$ config vlan add 1000
$ config vlan member add 1000 Ethernet1
$ config vlan member add 1000 Ethernet9_1 -u
$ config vlan add 2000
$ config vlan member add 2000 Ethernet1
$ config vlan member add 2000 Ethernet9_2 -u

$ show vlan config
Name        VID  Member       Mode
--------  -----  -----------  --------
Vlan1000   1000  Ethernet1    tagged
                 Ethernet9_1  untagged
Vlan2000   2000  Ethernet1    tagged
                 Ethernet9_2  untagged

$ config vlan member del 1000 Ethernet1
$ config vlan member del 2000 Ethernet

$ show vlan config
Name        VID  Member       Mode
--------  -----  -----------  --------
Vlan1000   1000  Ethernet9_1  untagged
Vlan2000   2000  Ethernet9_2  untagged

$ config vlan del 1000
$ config vlan del 2000

$ show vlan config
Name    VID    Member    Mode
------  -----  --------  ------

Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
…ments (#158)

* First code-drop dealing with intf_description and intf_status enhancements

I have taken care of the following items as part of this patch. There is another patch coming right after with changes made over a different repo:

 * Implemented a proper "show interface description" command -- i entirely removed the old one.
 * Enabled user to query system for a specific interface.
 * Extended "show interface status" command to do the same as above (query a specific interface).
 * Rewrote "show interface status" and integrated this code with "show interface description" one to prevent code-duplication and enhance modularity.
 * Added "speed" attribute as part of "show interface status" command.

admin@lnos-x1-a-asw02:~$ show interfaces description
Command: intfutil description
  Interface    Oper    Admin          Alias              Description
  -----------  ------  -------  -------------  -----------------------
  Ethernet112      up       up   fiftyGigE1/9  Special interface no. 1
  Ethernet114    down     down  fiftyGigE1/10                      N/A
  Ethernet116      up       up  fiftyGigE1/11  Special interface no. 2
  Ethernet118    down     down  fiftyGigE1/12                      N/A
  Ethernet120      up       up  fiftyGigE1/13                      N/A
  Ethernet122    down     down  fiftyGigE1/14                      N/A
  Ethernet124    down       up  fiftyGigE1/15                      N/A

admin@lnos-x1-a-asw02:~$ show interfaces status | more
Command: intfutil status
   Interface    Lanes    Speed    MTU          Alias    Oper    Admin
  -----------  -------  -------  -----  -------------  ------  -------
  Ethernet112  113,114      50G   9100   fiftyGigE1/9      up       up
  Ethernet114  115,116      N/A   1500  fiftyGigE1/10    down     down
  Ethernet116  117,118      50G   9100  fiftyGigE1/11      up       up
  Ethernet118  119,120      N/A   1500  fiftyGigE1/12    down     down
  Ethernet120  121,122      N/A   9100  fiftyGigE1/13      up       up
  Ethernet122  123,124      N/A   1500  fiftyGigE1/14    down     down
  Ethernet124  125,126      N/A   9100  fiftyGigE1/15    down       up

* Removing commented line as per review-comments.
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
* [PSU CLI] Align PSU CLI output with SONiC CLI output template

* [PSU CLI] Removed textonly mode because it's unused with new output format
Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
* Add utility to configure ECN WRED parameters

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>

* Fix verbose flag passing thru

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>

* Fixed ignoring parameters which equal 0

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
* [TACACS+]: Add configuration support for TACACS+

* Add config and show commands for TACACS+
* Add hostcfgd to listen configDB for TACACS+ and AAA, modify the
  pam configuration for Authentication in host.

  Signed-off-by: chenchen.qcc@alibaba-inc.com

* [TACACS+]: Update config command

* Add help comments for TACACS+ command
* Use 'default' command to recover TACACS+ configuration

 Signed-off-by: chenchen.qcc@alibaba-inc.com

* [TACACS+]: Adapt to the change for set_entry in ConfigDBConnector

* The method set_entry in class ConfigDBConnector has changed to
  update all column key-value tuples. Modify the config command to
  adapt to this API change.

  Signed-off-by: Chenchen Qi <chenchen.qcc@alibaba-inc.com>

* [TACACS+]: Move hostcfgd to sonic-buildimage

* Command list
  config aaa authentication login [{tacacs+, local} | default]
  config aaa authentication failthrough [enable | disable | default]
  config tacacs passkey <TEXT>
  config tacacs authtype [pap | chap | mschap]
  config tacacs timeout <0-60>
  config tacacs add <ip_address> --port <1–65535>
                                 --timeout <1–60>
                                 --key <TEXT>
                                 --type [pap | chap | mschap]
                                 --pri <1-64>
  config tacacs delete <ip_address>
  show aaa
  show tacacs

  Signed-off-by: Chenchen Qi <chenchen.qcc@alibaba-inc.com>

* [TACACS+]: Replace set_entry with mod_entry

* Replace set_entry with mod_entry when modify the specific key-value
  pair in configdb.

  Signed-off-by: Chenchen Qi <chenchen.qcc@alibaba-inc.com>

* [TACACS+]: Add default value print for TACACS+ show command

  Signed-off-by: Chenchen Qi <chenchen.qcc@alibaba-inc.com>
Group columns in OK/DROP pairs
Add option to show empty lines now hidden by default

Signed-off-by: marian-pritsak <marianp@mellanox.com>
Signed-off-by: marian-pritsak <marianp@mellanox.com>
* Also change 'Table name' to 'Rule name' in header of show_rule() output
* Also remove unused imports
* Also add ACL_TABLE_TYPE_MIRROR constant, other small tweaks, comments and docstrings
* Simplify couple functions

* Use vlan and mac address to check that arp entry has corresponding fdb entry

* Send directed GARP right before fast-reload procedure
Signed-off-by: marian-pritsak <marianp@mellanox.com>
Signed-off-by: Sihui Han <sihan@microsoft.com>
…ed to sonic-platform-common repo (#184)

- Also increment package version to 1.2
* Add portconfig utility

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>

* Fix units conversion in scripts/intfutil

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>

* Remove old script

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
* [sonic_installer] sync filesystem after file copy is done

* [sonics-installer] sleep 3 seconds after executing sync
yxieca and others added 2 commits January 18, 2018 15:53
…l when available (#188)

* [fast-reboot] Explicitly call Linux native reboot tool

* [reboot tool] Reboot device with platform specific tool when available

/usr/bin is in front of /sbin in search path. Adding reboot script here
will get executed when reboot was called without absolute path.

This script will call platform specific reboot tool (name: platform_reboot
under device folder) when available. Otherwise, dispatch to native Linux
reboot.

* [reboot] call sync before calling platform specific reboot tool

The platform specific reboot tool could be power cycling.

* [reboot] sleep 3 seconds after sync-ing

* [reboot] also stop snmp service
@nikos-github nikos-github merged commit 010ab72 into nikos-github:master Jan 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.